package com.stedu.mall.common.service;

import com.stedu.mall.common.bean.Category;
import com.stedu.mall.common.exception.SteduException;

public interface CategoryService {
    //添加
    boolean insert(Category category) throws SteduException;
    //根据分类id删除
    boolean delete(Integer id) throws SteduException;
    //根据分类id修改
    boolean update(Category category) throws SteduException;
    //根据条件查询
    Object selectByCondition(Category condition, Integer pageNum, Integer pageSize);
    //根据分类id查询
    Category selectById(Integer id);
}
